<h1>RAT Login</h1>

{% if form.errors %}
<p> Wrong!, try again! </p>
{% endif %}

<form method="post" action=".">
<table>
<tr><td>{{ form.username.label_tag }}</td><td> {{ form.username }}</td></tr>
<tr><td>{{ form.password.label_tag }}</td><td> {{ form.password }}</td></tr>
</table>

<input type="submit" value="login" />
{% ifnotequal next "/" %}
<input type="hidden" name="next" value="{{ next }}" />
{% endifnotequal %}
</form>


